from selenium import webdriver
from time import sleep
driver = webdriver.Chrome()
driver.implicitly_wait(10)
driver.get('http://localhost/upload/')
driver.maximize_window()
driver.find_element_by_link_text('登录').click()
driver.find_element_by_name('username').send_keys('123456')
driver.find_element_by_name('password').send_keys('123456')
driver.find_element_by_name('submit').click()
driver.find_element_by_xpath('//*[@id="show_hot_area"]/div[3]/a/img').click()
driver.find_element_by_xpath('//*[@id="ECS_FORMBUY"]/ul[3]/li[2]/a/img').click()
driver.find_element_by_xpath('/html/body/div[7]/div[1]/table/tbody/tr/td[2]/a/img').click()
driver.find_element_by_xpath('//*[@id="theForm"]/div[11]/div[2]/input[1]').click()
sleep(10)
driver.quit()